package com.uplooking.pojo;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;

public class ReturnVOExample {
    protected String orderByClause;

    protected boolean distinct;
    
    protected Integer start;

	protected Integer limit;

	public Integer getStart() {
		return start;
	}

	public void setStart(Integer start) {
		this.start = start;
	}

	public Integer getLimit() {
		return limit;
	}

	public void setLimit(Integer limit) {
		this.limit = limit;
	}

    protected List<Criteria> oredCriteria;

    public ReturnVOExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRnidIsNull() {
            addCriterion("rnid is null");
            return (Criteria) this;
        }

        public Criteria andRnidIsNotNull() {
            addCriterion("rnid is not null");
            return (Criteria) this;
        }

        public Criteria andRnidEqualTo(String value) {
            addCriterion("rnid =", value, "rnid");
            return (Criteria) this;
        }

        public Criteria andRnidNotEqualTo(String value) {
            addCriterion("rnid <>", value, "rnid");
            return (Criteria) this;
        }

        public Criteria andRnidGreaterThan(String value) {
            addCriterion("rnid >", value, "rnid");
            return (Criteria) this;
        }

        public Criteria andRnidGreaterThanOrEqualTo(String value) {
            addCriterion("rnid >=", value, "rnid");
            return (Criteria) this;
        }

        public Criteria andRnidLessThan(String value) {
            addCriterion("rnid <", value, "rnid");
            return (Criteria) this;
        }

        public Criteria andRnidLessThanOrEqualTo(String value) {
            addCriterion("rnid <=", value, "rnid");
            return (Criteria) this;
        }

        public Criteria andRnidLike(String value) {
            addCriterion("rnid like", value, "rnid");
            return (Criteria) this;
        }

        public Criteria andRnidNotLike(String value) {
            addCriterion("rnid not like", value, "rnid");
            return (Criteria) this;
        }

        public Criteria andRnidIn(List<String> values) {
            addCriterion("rnid in", values, "rnid");
            return (Criteria) this;
        }

        public Criteria andRnidNotIn(List<String> values) {
            addCriterion("rnid not in", values, "rnid");
            return (Criteria) this;
        }

        public Criteria andRnidBetween(String value1, String value2) {
            addCriterion("rnid between", value1, value2, "rnid");
            return (Criteria) this;
        }

        public Criteria andRnidNotBetween(String value1, String value2) {
            addCriterion("rnid not between", value1, value2, "rnid");
            return (Criteria) this;
        }

        public Criteria andRnrtidIsNull() {
            addCriterion("rnrtid is null");
            return (Criteria) this;
        }

        public Criteria andRnrtidIsNotNull() {
            addCriterion("rnrtid is not null");
            return (Criteria) this;
        }

        public Criteria andRnrtidEqualTo(String value) {
            addCriterion("rnrtid =", value, "rnrtid");
            return (Criteria) this;
        }

        public Criteria andRnrtidNotEqualTo(String value) {
            addCriterion("rnrtid <>", value, "rnrtid");
            return (Criteria) this;
        }

        public Criteria andRnrtidGreaterThan(String value) {
            addCriterion("rnrtid >", value, "rnrtid");
            return (Criteria) this;
        }

        public Criteria andRnrtidGreaterThanOrEqualTo(String value) {
            addCriterion("rnrtid >=", value, "rnrtid");
            return (Criteria) this;
        }

        public Criteria andRnrtidLessThan(String value) {
            addCriterion("rnrtid <", value, "rnrtid");
            return (Criteria) this;
        }

        public Criteria andRnrtidLessThanOrEqualTo(String value) {
            addCriterion("rnrtid <=", value, "rnrtid");
            return (Criteria) this;
        }

        public Criteria andRnrtidLike(String value) {
            addCriterion("rnrtid like", value, "rnrtid");
            return (Criteria) this;
        }

        public Criteria andRnrtidNotLike(String value) {
            addCriterion("rnrtid not like", value, "rnrtid");
            return (Criteria) this;
        }

        public Criteria andRnrtidIn(List<String> values) {
            addCriterion("rnrtid in", values, "rnrtid");
            return (Criteria) this;
        }

        public Criteria andRnrtidNotIn(List<String> values) {
            addCriterion("rnrtid not in", values, "rnrtid");
            return (Criteria) this;
        }

        public Criteria andRnrtidBetween(String value1, String value2) {
            addCriterion("rnrtid between", value1, value2, "rnrtid");
            return (Criteria) this;
        }

        public Criteria andRnrtidNotBetween(String value1, String value2) {
            addCriterion("rnrtid not between", value1, value2, "rnrtid");
            return (Criteria) this;
        }

        public Criteria andRntimeIsNull() {
            addCriterion("rntime is null");
            return (Criteria) this;
        }

        public Criteria andRntimeIsNotNull() {
            addCriterion("rntime is not null");
            return (Criteria) this;
        }

        public Criteria andRntimeEqualTo(Timestamp value) {
            addCriterion("rntime =", value, "rntime");
            return (Criteria) this;
        }

        public Criteria andRntimeNotEqualTo(Timestamp value) {
            addCriterion("rntime <>", value, "rntime");
            return (Criteria) this;
        }

        public Criteria andRntimeGreaterThan(Timestamp value) {
            addCriterion("rntime >", value, "rntime");
            return (Criteria) this;
        }

        public Criteria andRntimeGreaterThanOrEqualTo(Timestamp value) {
            addCriterion("rntime >=", value, "rntime");
            return (Criteria) this;
        }

        public Criteria andRntimeLessThan(Timestamp value) {
            addCriterion("rntime <", value, "rntime");
            return (Criteria) this;
        }

        public Criteria andRntimeLessThanOrEqualTo(Timestamp value) {
            addCriterion("rntime <=", value, "rntime");
            return (Criteria) this;
        }

        public Criteria andRntimeIn(List<Timestamp> values) {
            addCriterion("rntime in", values, "rntime");
            return (Criteria) this;
        }

        public Criteria andRntimeNotIn(List<Timestamp> values) {
            addCriterion("rntime not in", values, "rntime");
            return (Criteria) this;
        }

        public Criteria andRntimeBetween(Timestamp value1, Timestamp value2) {
            addCriterion("rntime between", value1, value2, "rntime");
            return (Criteria) this;
        }

        public Criteria andRntimeNotBetween(Timestamp value1, Timestamp value2) {
            addCriterion("rntime not between", value1, value2, "rntime");
            return (Criteria) this;
        }

        public Criteria andRncostIsNull() {
            addCriterion("rncost is null");
            return (Criteria) this;
        }

        public Criteria andRncostIsNotNull() {
            addCriterion("rncost is not null");
            return (Criteria) this;
        }

        public Criteria andRncostEqualTo(Integer value) {
            addCriterion("rncost =", value, "rncost");
            return (Criteria) this;
        }

        public Criteria andRncostNotEqualTo(Integer value) {
            addCriterion("rncost <>", value, "rncost");
            return (Criteria) this;
        }

        public Criteria andRncostGreaterThan(Integer value) {
            addCriterion("rncost >", value, "rncost");
            return (Criteria) this;
        }

        public Criteria andRncostGreaterThanOrEqualTo(Integer value) {
            addCriterion("rncost >=", value, "rncost");
            return (Criteria) this;
        }

        public Criteria andRncostLessThan(Integer value) {
            addCriterion("rncost <", value, "rncost");
            return (Criteria) this;
        }

        public Criteria andRncostLessThanOrEqualTo(Integer value) {
            addCriterion("rncost <=", value, "rncost");
            return (Criteria) this;
        }

        public Criteria andRncostIn(List<Integer> values) {
            addCriterion("rncost in", values, "rncost");
            return (Criteria) this;
        }

        public Criteria andRncostNotIn(List<Integer> values) {
            addCriterion("rncost not in", values, "rncost");
            return (Criteria) this;
        }

        public Criteria andRncostBetween(Integer value1, Integer value2) {
            addCriterion("rncost between", value1, value2, "rncost");
            return (Criteria) this;
        }

        public Criteria andRncostNotBetween(Integer value1, Integer value2) {
            addCriterion("rncost not between", value1, value2, "rncost");
            return (Criteria) this;
        }

        public Criteria andRnuidIsNull() {
            addCriterion("rnuid is null");
            return (Criteria) this;
        }

        public Criteria andRnuidIsNotNull() {
            addCriterion("rnuid is not null");
            return (Criteria) this;
        }

        public Criteria andRnuidEqualTo(Integer value) {
            addCriterion("rnuid =", value, "rnuid");
            return (Criteria) this;
        }

        public Criteria andRnuidNotEqualTo(Integer value) {
            addCriterion("rnuid <>", value, "rnuid");
            return (Criteria) this;
        }

        public Criteria andRnuidGreaterThan(Integer value) {
            addCriterion("rnuid >", value, "rnuid");
            return (Criteria) this;
        }

        public Criteria andRnuidGreaterThanOrEqualTo(Integer value) {
            addCriterion("rnuid >=", value, "rnuid");
            return (Criteria) this;
        }

        public Criteria andRnuidLessThan(Integer value) {
            addCriterion("rnuid <", value, "rnuid");
            return (Criteria) this;
        }

        public Criteria andRnuidLessThanOrEqualTo(Integer value) {
            addCriterion("rnuid <=", value, "rnuid");
            return (Criteria) this;
        }

        public Criteria andRnuidIn(List<Integer> values) {
            addCriterion("rnuid in", values, "rnuid");
            return (Criteria) this;
        }

        public Criteria andRnuidNotIn(List<Integer> values) {
            addCriterion("rnuid not in", values, "rnuid");
            return (Criteria) this;
        }

        public Criteria andRnuidBetween(Integer value1, Integer value2) {
            addCriterion("rnuid between", value1, value2, "rnuid");
            return (Criteria) this;
        }

        public Criteria andRnuidNotBetween(Integer value1, Integer value2) {
            addCriterion("rnuid not between", value1, value2, "rnuid");
            return (Criteria) this;
        }

        public Criteria andRnunameIsNull() {
            addCriterion("rnuname is null");
            return (Criteria) this;
        }

        public Criteria andRnunameIsNotNull() {
            addCriterion("rnuname is not null");
            return (Criteria) this;
        }

        public Criteria andRnunameEqualTo(String value) {
            addCriterion("rnuname =", value, "rnuname");
            return (Criteria) this;
        }

        public Criteria andRnunameNotEqualTo(String value) {
            addCriterion("rnuname <>", value, "rnuname");
            return (Criteria) this;
        }

        public Criteria andRnunameGreaterThan(String value) {
            addCriterion("rnuname >", value, "rnuname");
            return (Criteria) this;
        }

        public Criteria andRnunameGreaterThanOrEqualTo(String value) {
            addCriterion("rnuname >=", value, "rnuname");
            return (Criteria) this;
        }

        public Criteria andRnunameLessThan(String value) {
            addCriterion("rnuname <", value, "rnuname");
            return (Criteria) this;
        }

        public Criteria andRnunameLessThanOrEqualTo(String value) {
            addCriterion("rnuname <=", value, "rnuname");
            return (Criteria) this;
        }

        public Criteria andRnunameLike(String value) {
            addCriterion("rnuname like", value, "rnuname");
            return (Criteria) this;
        }

        public Criteria andRnunameNotLike(String value) {
            addCriterion("rnuname not like", value, "rnuname");
            return (Criteria) this;
        }

        public Criteria andRnunameIn(List<String> values) {
            addCriterion("rnuname in", values, "rnuname");
            return (Criteria) this;
        }

        public Criteria andRnunameNotIn(List<String> values) {
            addCriterion("rnuname not in", values, "rnuname");
            return (Criteria) this;
        }

        public Criteria andRnunameBetween(String value1, String value2) {
            addCriterion("rnuname between", value1, value2, "rnuname");
            return (Criteria) this;
        }

        public Criteria andRnunameNotBetween(String value1, String value2) {
            addCriterion("rnuname not between", value1, value2, "rnuname");
            return (Criteria) this;
        }

        public Criteria andRndescIsNull() {
            addCriterion("rndesc is null");
            return (Criteria) this;
        }

        public Criteria andRndescIsNotNull() {
            addCriterion("rndesc is not null");
            return (Criteria) this;
        }

        public Criteria andRndescEqualTo(String value) {
            addCriterion("rndesc =", value, "rndesc");
            return (Criteria) this;
        }

        public Criteria andRndescNotEqualTo(String value) {
            addCriterion("rndesc <>", value, "rndesc");
            return (Criteria) this;
        }

        public Criteria andRndescGreaterThan(String value) {
            addCriterion("rndesc >", value, "rndesc");
            return (Criteria) this;
        }

        public Criteria andRndescGreaterThanOrEqualTo(String value) {
            addCriterion("rndesc >=", value, "rndesc");
            return (Criteria) this;
        }

        public Criteria andRndescLessThan(String value) {
            addCriterion("rndesc <", value, "rndesc");
            return (Criteria) this;
        }

        public Criteria andRndescLessThanOrEqualTo(String value) {
            addCriterion("rndesc <=", value, "rndesc");
            return (Criteria) this;
        }

        public Criteria andRndescLike(String value) {
            addCriterion("rndesc like", value, "rndesc");
            return (Criteria) this;
        }

        public Criteria andRndescNotLike(String value) {
            addCriterion("rndesc not like", value, "rndesc");
            return (Criteria) this;
        }

        public Criteria andRndescIn(List<String> values) {
            addCriterion("rndesc in", values, "rndesc");
            return (Criteria) this;
        }

        public Criteria andRndescNotIn(List<String> values) {
            addCriterion("rndesc not in", values, "rndesc");
            return (Criteria) this;
        }

        public Criteria andRndescBetween(String value1, String value2) {
            addCriterion("rndesc between", value1, value2, "rndesc");
            return (Criteria) this;
        }

        public Criteria andRndescNotBetween(String value1, String value2) {
            addCriterion("rndesc not between", value1, value2, "rndesc");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}